import hierarchies.Main;
import hips.Image;
import ij.ImagePlus;
import ij.plugin.filter.PlugInFilter;
import ij.process.ImageProcessor;

@SuppressWarnings("rawtypes")
public class Hierarchies_ implements PlugInFilter {
	Image img;

	public int setup(String string, ImagePlus impl) {
		img = Image.getImage(impl);
		return DOES_RGB + DOES_8G + DOES_16 + DOES_32 + NO_CHANGES;
	}

	public void run(ImageProcessor ip) {
		new Main(img);
	}
}